import request from '@/utils/request'

export function addNonStaff(data) {
    return request({
        url: '/addNonStaff',
        method: 'post',
        data
    })
}

export function delNonStaff(data) {
    return request({
        url: '/delNonStaff',
        method: 'delete',
        data
    })
}

export function modifyNonStaff(data) {
    return request({
        url: '/modifyNonStaff',
        method: 'put',
        data
    })
}

export function queryAll(data) {
    return request({
        url: '/queryAll',
        method: 'get',
        params: data
    })
}

export function getNonStaffRoles(data) {
    return request({
        url: '/getNonStaffRoles',
        method: 'get',
        params: data
    })
}